package day10_poly.demo02_ploy;

public class Dog extends Animal {
    @Override
    public void eat() {
        System.out.println("狗吃东西");
    }

    public Dog() {
    }

    public Dog(int age, String name) {
        super(age, name);
    }
    public void play(){
        System.out.println("狗玩东西");
    }
}
